package com.company.project.wechat.officialAccounts.entity;

import lombok.Data;

import java.util.Calendar;

/**
 * 信息父类
 * @author ZYF
 * @date 2021/5/18 11:03
 */

@Data
public class BaseMessage {

    private String ToUserName;// 微信号
    private String FromUserName;// 用户的openID
    private long CreateTime;// 创建时间
    private String MsgType;// 消息类型

    public BaseMessage(String ToUserName,String fromUserName) {
        this.ToUserName = ToUserName;
        this.FromUserName = fromUserName;
        this.CreateTime = Calendar.getInstance().getTimeInMillis() / 1000;
    }
}
